package com.phs.main.web.controller;

import com.phs.main.common.constant.AjaxResult;
import com.phs.main.common.info.Server;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api
@RestController
public class InfoController {

	@ApiOperation("系统信息")
	@GetMapping("/info")
	public AjaxResult getInfo(){
		Server server = new Server();
		server.copyTo();
		return AjaxResult.success(server);
	}
}
